package com.hongyue.dey04;

import java.util.stream.Collectors;
import java.util.stream.Stream;

public class Demo {
    public static void main(String[] args) {
        Stream.of("张三丰", "张翠山", "诸葛孔明", "韩信", "刘邦", "司马懿").filter(s -> s.length() == 3).collect(Collectors.toList());

    }
}
